
const login = () => import('@views/login.vue');
const index = () => import('@views/index.vue');
const schoolInfo = () => import('@views/school-info.vue');
const chooseSubject = () => import('@views/chooseSubject.vue');
const myCollect = () => import('@views/myCollect.vue');

export default [
  {
    path: '/',
    name: 'index',
    component: index,
    children: [
      {
        path: 'schoolInfo',
        name: 'schoolInfo',
        component: schoolInfo
      },
      {
        path: 'myCollect',
        name: 'myCollect',
        component: myCollect
      },

    ],
    redirect:'/login'
  },
  {
    path: '/chooseSubject',
    name: 'chooseSubject',
    component: chooseSubject
  },
  {
    path: '/login',
    name: 'login',
    component: login
  },
  // {
  //   path: '*', redirect: '/'
  // }
];